package com.bto.leasetest.utils;

import com.alibaba.fastjson2.JSON;
import com.alibaba.fastjson2.JSONWriter;
import com.bto.leasetest.response.ResponseBase;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

/**
 * @author 王小波
 * @description:
 * @date 2023/9/20 15:45
 */
public class LogUtils {
    public static Logger requsetLogger = LoggerFactory.getLogger("requestLogger");
    public static Logger leaseLogger = LoggerFactory.getLogger("requestLogger");

    public static void LeaseLoggerByError(ResponseBase responseBase) {
        LogUtils.requsetLogger.error("Respon Error  : {}", JSON.toJSONString(responseBase, JSONWriter.Feature.PrettyFormat));
    }
}
